package me.zhengjie.modules.security.service;

import me.zhengjie.util.BaseResponse;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description TODO
 * @Author Long
 * @Date 2021/8/25 10:03
 */
public interface IThirdPartyService {


    /**
     * 用授权码code获取token，然后获取用户名
     *
     * @param code  重定向得code
     * @param state 状态
     */
    BaseResponse getCode(String code, String state, HttpServletRequest request) throws Exception;

    /**
     * 获取到微信服务接入返回的code,后获取绑定用户信息
     *
     * @param level
     * @param code
     * @param state
     */
    BaseResponse getWxCode(String level, String code, String state,HttpServletRequest request);
}
